<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>首页</title>
    <style>
        .child{
            display: block;
            padding-left: 20px;
        }
    </style>
</head>
<body>
欢迎登录，<label th:text="${session.login_user.username}"></label>
<a th:href="@{/logout}">注销登录</a>
<hr />

<dl>
    <dt>开始</dt>
    <dd>abc</dd>
</dl>
<p th:each="menu :${menus}">
    <a href="javascript:void(0)" th:text="${menu.menuName}"></a>

    <span class="child" th:each="child:${menu.children}">
        <a th:href="@{${child.path}}" th:text="${child.menuName}"></a>
    </span>
</p>
</body>
</html>